<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>投稿--邻助社区管理系统</title>
    <link rel="stylesheet" href="front/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="front/css/public.css" media="all" />
    <link rel="stylesheet" href="css/public.css" media="all" />
</head>
<body>
<!--<script type="text/javascript" src="common/nav.js"></script>-->
<div class='layui-bg-red' style='width: 100%'>
    <ul class='layui-nav nav_left' lay-filter=''>
        <li class='layui-nav-item'><a href='/news'>首页</a></li>
        <li class='layui-nav-item '>
            <a href='newslist.html?categoryId=1'>社区新闻</a>
        </li>
        <li class='layui-nav-item'><a href='newslist.html?categoryId=2'>社区帮助</a></li>
        <li class='layui-nav-item'><a href='newslist.html?categoryId=3'>社区风采</a></li>
        <li class='layui-nav-item'><a href='newslist.html?categoryId=4'>投稿专栏</a></li>
        <div class="search_container">
            <input class="layui-input search_article" type="text" placeholder="输入文章标题">
            <div class="result_container">
            </div>
        </div>
        <button type="button" class="layui-btn" style="margin-top: 15px">搜索</button>
    </ul>
    <ul class='layui-nav nav_right' lay-filter=''>
        <li class='layui-nav-item tologin'>
            <a href='admin?method=toLogin'>登录</a>
        </li>
        <li class='layui-nav-item has-login'>
            <a href='javascript:;' class='username'></a>
            <dl class='layui-nav-child'> <!-- 二级菜单 -->
                <dd><a id='logout'>注销</a></dd>
                <dd><a href='postNewsDetail.html' id='post'>投稿</a></dd>
            </dl>
        </li>
    </ul>
</div>
<form class="layui-form layui-row layui-col-space10">
    <div class="layui-col-md9 layui-col-xs12">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md9 layui-col-xs7">
                <!--textid-->
                <input type="text" class="layui-input textId layui-hide" >
                <!--id-->
                <input type="text" class="layui-input id layui-hide" >
                <div class="layui-form-item magt3">
                    <label class="layui-form-label">文章标题</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input newsName" lay-verify="newsName" placeholder="请输入文章标题">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">作者</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input author"  placeholder="请输入作者">
                    </div>
                </div>
            </div>
            <div class="layui-col-md3 layui-col-xs5">
                <div class="layui-upload-list thumbBox mag0 magt3">
                    <img class="layui-upload-img thumbImg">
                </div>
            </div>
        </div>
        <div class="layui-form-item magb0">
            <label class="layui-form-label">文章内容</label>
            <div class="layui-input-block">
<!--                <p id="news_content"></p>-->
                <textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="news_content"></textarea>
            </div>
        </div>
    </div>
    <div class="layui-col-md3 layui-col-xs12">
        <blockquote class="layui-elem-quote title magt10"><i class="layui-icon">&#xe609;</i> 发布</blockquote>
        <div class="border">
            <div class="layui-form-item">
                <label class="layui-form-label"><i class="layui-icon">&#xe60e;</i> 状  态</label>
                <div class="layui-input-block ">
                    <select name="status" lay-verify="required" id="newsStatus">
                        <option value="1">显示</option>
                        <option value="0">不显示</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><i class="layui-icon">&#xe60e;</i> 分  类</label>
                <div class="layui-input-block">
                    <select name="category" lay-verify="required" id="category">
                    </select>
                </div>
            </div>
            <hr class="layui-bg-gray" />
            <div class="layui-right">
                <a class="layui-btn layui-btn-sm" lay-filter="addNews" lay-submit><i class="layui-icon">&#xe609;</i>发布</a>
                <a class="layui-btn layui-btn-primary layui-btn-sm" lay-filter="look" lay-submit>预览</a>
            </div>
        </div>
    </div>
</form>

<script type="text/javascript" src="front/layui/layui.js"></script>
<script type="text/javascript" src="/news/front/js/api.js"></script>
<script type="text/javascript" src="front/js/common.js"></script>
<script type="text/javascript" src="common/public.js"0></script>
<script type="text/javascript" src="common/postNewsDetail.js"></script>
</body>
</html>
